Editing of scripts related to graphics modules

 

Scripts related to graphics modules are scripts that are executed in the SCADA Server when a particular graphics module starts, runs, or ends.

When the studio is in the module editor, select the 'Etc' text menu and you will see a menu like <Figure 1>

 

<Figure 1> In the module editor's 'Etcr' text menu, select the script-related menu

 

Scripts related to graphics modules, such as <Figure 1>, are of the same type and content as shown in <Table 1>.

 

Type of Script

Details

Number of scripts

Script On Module Opened

Run once when the current graphics module is opened

No more than 1

Script On Module Running

Always runs while the current graphics module is open

Script On Module Closed

Executes once when the current graphics module closes

Script On Module Activated

Run once when the current graphics module is activated

Script On Module Deactivated

Executes once when the current graphics module is inactive

<Table 1> Types and contents of scripts related to graphics modules

 

If you select a script related to a graphics module, such as <Figure 1>,  the script editor like <Figure 2> is launched, and you can write the script using the editor and how to write the script.

 

1. The Script ON Module Opend/Closed in <Figure 1> is the script that is executed (once) when the current graphics module is opened or closed in the graphics watch.

2. The Script On Module Running is the script that is executed while the graphics module is being watched.

The Script On Module Activated/Deactivated is the script that is executed when the current graphics module is activated or disabled (once).
3. In this case, the active state is when the window is focused (mouse selected), and when there is no focus, it is inactive.

 

<Figure 2> Example of a script editor for Script On Module Opened

 

Related Helps)

How to use the editor

How to edit a script

Etc text menu in the module editor

Excute the Script Editor

Script Main Help